package com.spic.business.ioc.domain;

import com.spic.common.core.annotation.Excel;
import com.spic.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 优良天数IOC对象 ioc_good_days
 *
 * @author spic
 * @date 2022-04-14
 */
public class IocGoodDays extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 年份 */
    @Excel(name = "年份")
    private Integer year;

    /** 有效天数 */
    @Excel(name = "有效天数")
    private Integer effectiveNumberDays;

    /** 优良天数 */
    @Excel(name = "优良天数")
    private Integer goodDaysNumber;

    /** 占比 */
    @Excel(name = "占比")
    private Double percentage;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setYear(Integer year)
    {
        this.year = year;
    }

    public Integer getYear()
    {
        return year;
    }
    public void setEffectiveNumberDays(Integer effectiveNumberDays)
    {
        this.effectiveNumberDays = effectiveNumberDays;
    }

    public Integer getEffectiveNumberDays()
    {
        return effectiveNumberDays;
    }
    public void setGoodDaysNumber(Integer goodDaysNumber)
    {
        this.goodDaysNumber = goodDaysNumber;
    }

    public Integer getGoodDaysNumber()
    {
        return goodDaysNumber;
    }
    public void setPercentage(Double percentage)
    {
        this.percentage = percentage;
    }

    public Double getPercentage()
    {
        return percentage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("year", getYear())
            .append("effectiveNumberDays", getEffectiveNumberDays())
            .append("goodDaysNumber", getGoodDaysNumber())
            .append("percentage", getPercentage())
            .toString();
    }
}
